package com.liuyao;

import anywheresoftware.b4a.BA;
import anywheresoftware.b4a.pc.*;

public class main_subs_0 {


public static RemoteObject  _appstart(RemoteObject _args) throws Exception{
try {
		Debug.PushSubsStack("AppStart (main) ","main",0,main.ba,main.mostCurrent,12);
if (RapidSub.canDelegate("appstart")) return main.remoteMe.runUserSub(false, "main","appstart", _args);
Debug.locals.put("Args", _args);
 BA.debugLineNum = 12;BA.debugLine="Sub AppStart (Args() As String)";
Debug.ShouldStop(2048);
 BA.debugLineNum = 13;BA.debugLine="cal.Initialize";
Debug.ShouldStop(4096);
main._cal.runClassMethod (com.liuyao.calendar.class, "_initialize",main.ba);
 BA.debugLineNum = 14;BA.debugLine="ly.Initialize";
Debug.ShouldStop(8192);
main._ly.runClassMethod (com.liuyao.liuyao.class, "_initialize",main.ba);
 BA.debugLineNum = 15;BA.debugLine="test";
Debug.ShouldStop(16384);
_test();
 BA.debugLineNum = 17;BA.debugLine="End Sub";
Debug.ShouldStop(65536);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			Debug.ErrorCaught(e);
			throw e;
		} 
finally {
			Debug.PopSubsStack();
		}}

private static boolean processGlobalsRun;
public static void initializeProcessGlobals() {
    
    if (main.processGlobalsRun == false) {
	    main.processGlobalsRun = true;
		try {
		        main_subs_0._process_globals();
main.myClass = BA.getDeviceClass ("com.liuyao.main");
liuyao.myClass = BA.getDeviceClass ("com.liuyao.liuyao");
calendar.myClass = BA.getDeviceClass ("com.liuyao.calendar");
		
        } catch (Exception e) {
			throw new RuntimeException(e);
		}
    }
}public static RemoteObject  _process_globals() throws Exception{
 //BA.debugLineNum = 7;BA.debugLine="Sub Process_Globals";
 //BA.debugLineNum = 8;BA.debugLine="Private ly As liuyao";
main._ly = RemoteObject.createNew ("com.liuyao.liuyao");
 //BA.debugLineNum = 9;BA.debugLine="Private cal As calendar";
main._cal = RemoteObject.createNew ("com.liuyao.calendar");
 //BA.debugLineNum = 10;BA.debugLine="End Sub";
return RemoteObject.createImmutable("");
}
public static RemoteObject  _test() throws Exception{
try {
		Debug.PushSubsStack("test (main) ","main",0,main.ba,main.mostCurrent,18);
if (RapidSub.canDelegate("test")) return main.remoteMe.runUserSub(false, "main","test");
RemoteObject _n = RemoteObject.createImmutable(0);
 BA.debugLineNum = 18;BA.debugLine="Sub test";
Debug.ShouldStop(131072);
 BA.debugLineNum = 19;BA.debugLine="Dim n As Int=1987";
Debug.ShouldStop(262144);
_n = BA.numberCast(int.class, 1987);Debug.locals.put("n", _n);Debug.locals.put("n", _n);
 BA.debugLineNum = 20;BA.debugLine="Log(n&\"=\"&cal.lYearDays(1987)&CRLF&\"the right val";
Debug.ShouldStop(524288);
main.__c.runVoidMethod ("Log",(Object)(RemoteObject.concat(_n,RemoteObject.createImmutable("="),main._cal.runClassMethod (com.liuyao.calendar.class, "_lyeardays",(Object)(BA.numberCast(int.class, 1987))),main.__c.getField(true,"CRLF"),RemoteObject.createImmutable("the right val is:387"))));
 BA.debugLineNum = 21;BA.debugLine="End Sub";
Debug.ShouldStop(1048576);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			Debug.ErrorCaught(e);
			throw e;
		} 
finally {
			Debug.PopSubsStack();
		}}
}